﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pahan.McuFusion.Files
{
    /// <summary>
    /// The interface for file writers.
    /// </summary>
    public interface IFileWriter : IDisposable
    {
        /// <summary>
        /// Gets the default value. This value may be skiped while writing,
        /// if the output format supports such behavior.
        /// </summary>
        byte DefaultValue
        {
            get;
            set;
        }

        /// <summary>
        /// Writes the data to the file.
        /// </summary>
        void WriteAll(IList<byte> data);
    }
}
